package com.share.lottery.activity.mycaibo;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;

import com.share.lottery.R;
import com.share.lottery.base.BaseActivity;

/**
 * @author py
 *我的财宝首页
 */
public class MycaibaoMainActivity extends BaseActivity {
	private ImageView imgHead;//用户头像
	private TextView tvNumber;//手机号码
	private TextView tvNickName;//昵称
	private TextView tvCb;
	private TextView tvDj;
	private TextView tvJf;
	private TextView tvGmcb;//购买彩票
	private TextView tvZscb;//赠送彩币
	private TextView tvDhjf;//兑换积分
	private TextView tvDhcb;//兑换彩币
	private TextView tvZhsz;
	private TextView tvTssz;
	private TextView tvWdzl;
	private TextView tvMmxg;
	private TextView tvTcdl;//退出登陆
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.mycaibao_main);
		init();
	}

	public void findView() {
		imgHead = (ImageView) findViewById(R.id.img_head);
		tvNumber = (TextView) findViewById(R.id.tv_number);
		tvNickName = (TextView) findViewById(R.id.nick_name);
		tvCb = (TextView) findViewById(R.id.tv_cb);
		tvDj = (TextView) findViewById(R.id.tv_dj);
		tvJf = (TextView) findViewById(R.id.tv_jf);
		tvGmcb = (TextView) findViewById(R.id.tv_gmcb);
		tvZscb = (TextView) findViewById(R.id.tv_zscb);
		tvDhjf = (TextView) findViewById(R.id.tv_dhjf);
		tvDhcb = (TextView) findViewById(R.id.tv_dhcb);
		tvZhsz = (TextView) findViewById(R.id.tv_zhsz);
		tvTssz = (TextView) findViewById(R.id.tv_tssz);
		tvWdzl = (TextView) findViewById(R.id.tv_wdzl);
		tvMmxg = (TextView) findViewById(R.id.tv_mmxg);
		tvTcdl = (TextView) findViewById(R.id.tv_tcdl);

	}


	public void getData() {

	}


	private TextView titleTv;
	public void initTitle() {
		ImageButton titleLeftImg = (ImageButton) findViewById(R.id.title_left_img);
		ImageButton titleRightImg = (ImageButton) findViewById(R.id.title_right_img);
		titleTv = (TextView) findViewById(R.id.title_tv_center);
		titleLeftImg.setOnClickListener(new OnClickListener() {


			public void onClick(View arg0) {
				finish();

			}
		});
		titleLeftImg.setImageResource(R.drawable.back);
		titleTv.setText("我的彩宝");
		titleRightImg.setVisibility(View.VISIBLE);
		titleRightImg.setImageResource(R.drawable.sxsj);
		titleRightImg.setOnClickListener(new OnClickListener() {


			public void onClick(View v) {
				finish();

			}
		});
	}



	public void setData() {


	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.tv_gmcb://购买彩币

			break;
		case R.id.tv_zscb://赠送彩币

			break;
		case R.id.tv_dhjf://兑换积分

			break;

		case R.id.tv_dhcb://兑换彩币

			break;
		case R.id.tv_zhsz://账户收支

			break;
		case R.id.tv_tssz://推送设置 

			break;
		case R.id.tv_wdzl://我的资料

			break;
		case R.id.tv_mmxg://密码修改

			break;
		case R.id.tv_tcdl://退出登陆

			break;

		default:
			break;
		}
	}

	public void setonCliker() {
		tvGmcb.setOnClickListener(this);
		tvZscb.setOnClickListener(this);
		tvDhjf.setOnClickListener(this);
		tvDhcb.setOnClickListener(this);
		tvZhsz.setOnClickListener(this);
		tvWdzl.setOnClickListener(this);
		tvMmxg.setOnClickListener(this);
		tvTcdl.setOnClickListener(this);


	}

}
